<?php
/**
 * @project     : Travel
 * @copyright   : 
 * @desc        : Thuc hien cac thao tac tren bang hotel_price
 * @coder       : Truong cong quyen
 * @createdate  : 3/11/2011
*/
class Hotel_price_model extends CI_Model
{
    var $hotel_price_id=0;
    var $hotel_id='';
    var $type_room_id='';
    var $hotel_price_time='';
    var $hotel_price_price='';
    var $hotel_price_status=1;

    
    public function __construct() {
        parent::__construct();
    }
    
    function get_all($status=1)
    {
        if($status!=-1)
        {
            $this->db->where('hotel_price_status', $status);
        }
        $query = $this->db->get('hotel_price');
        return $query->result();
        
    }
    
     function get_by_id($id)
    {
        $this->db->where('hotel_price_id', $id);
        $query = $this->db->get('hotel_price');
        return $query->row();
    }
    

}